<?php defined('ByShopWWI') or exit('Access Invalid!');?>
<link href="<?php echo SHOP_TEMPLATES_URL;?>/css/member.css" rel="stylesheet" type="text/css">
<link href="<?php echo SHOP_TEMPLATES_URL;?>/css/reset.css" rel="stylesheet" type="text/css">
<link href="<?php echo SHOP_TEMPLATES_URL;?>/css/base.css" rel="stylesheet" type="text/css">
  <div style="width: 100%;font-size: 14px; height: 40px; line-height: 40px;
font-weight: 600;
display: inline-block;
*display: inline;
*zoom: 1;">
    <h3>收益进度查询</h3>
  </div>
<div style="width: 100%; height:25px;font-size: 14px;
display: inline-block;
*display: inline;
*zoom: 1;
background-color:#fcf8e3;color: #cdac73; padding-top: 10px; padding-left: 10px;">
  累计收益:<font color="#e5816d"><strong><?php echo $output['money_exchange_count'];?></strong></font>元
</div>


<div class="ncm-flow-container" style="width: 600px;">
  <div id="saleRefund" class="ncm-default-form">

    <table class="ncm-default-table">
      <thead>
      <tr>
        <th class="w10"></th>
        <th class="w150 tl">记录时间</th>
        <th class="w150 tl">收入(元)</th>
        <th class="tl">记录说明</th>
      </tr>
      </thead>
      <tbody>
      <?php if(is_array($output['money_exchange_list'])){?>
      <?php foreach($output['money_exchange_list'] as $v){?>
      <tr class="bd-line">
        <td></td>
        <td class="goods-time tl"><?php echo date('Y-m-d H:i:s',$v['add_time']);?></td>
        <td class="tl red">+<?php echo $v['money_exchange'];?></td>
        <td class="tl">管理员调节预存款【增加】，充值单号: <?php echo $v['order_sn'];?></td>
      </tr>
      <?PHP }?>
      <?php }else{?>
      <!--没有记录输出这段-->
      <tr>
        <td colspan="20" class="norecord"><div class="warning-option"><i>&nbsp;</i><span>暂无符合条件的数据记录</span></div></td>
      </tr>
      <!--/没有记录输出这段-->
      <?php }?>

      </tbody>

    </table>




  </div>
</div>
<div class="ncm-flow-item">
  <div class="title">商品信息</div>
  <div class="item-goods">
    <?php foreach($output['order_info']['extend_order_goods'] as $v){?>
        <?php if($v['goods_id']==$output['goods_id']){?>
    <dl>
      <dt>
      <div class="ncm-goods-thumb-mini"><a target="_blank" href="index.php?act=goods&amp;op=index&amp;goods_id=<?php echo $v['goods_id'];?>">
          <img src="/data/upload/shop/store/goods/<?php echo $v['store_id'];?>/<?php echo $v['goods_image'];?>" onmouseover="toolTip('<img src=/data/upload/shop/goods/<?php echo $v['store_id'];?>/<?php echo $v['goods_image'];?>>')" onmouseout="toolTip()"></a></div>
      </dt>
      <dd><a target="_blank" href="index.php?act=goods&amp;op=index&amp;goods_id=<?php echo $v['goods_id'];?>"><?php echo $v['goods_name'];?></a>
        ¥<?php echo $v['goods_price'];?> * <?php echo $v['goods_num'];?> <font color="#AAA">(数量)</font>
        <span></span>
      </dd>
    </dl>
          <?php }?>
    <?php }?>
  </div>
  <div class="item-order">
    <dl>
      <dt>运&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;费：</dt>
      <dd>（免运费）</dd>
    </dl>
    <dl>
      <dt>订单总额：</dt>
      <dd><strong>¥<?php echo $output['order_info']['order_amount'];?>                    </strong> </dd>
    </dl>
    <dl class="line">
      <dt>订单编号：</dt>
      <dd><a target="_blank" href="index.php?act=store_order&op=show_order&order_id=<?php echo $output['order_info']['order_id'];?>"><?php echo $output['order_info']['order_sn'];?></a>
        <a href="javascript:void(0);" class="a">更多<i class="icon-angle-down"></i>
          <div class="more"> <span class="arrow"></span>
            <ul>
              <li>付款单号：<span>230535476359325003</span></li>
              <li>支付方式：<span>站内余额支付</span></li>
              <li>下单时间：<span>2016-12-19 15:25:59</span></li>
              <li>付款时间：<span>2016-12-19 15:45:17</span></li>
            </ul>
          </div>
        </a> </dd>
    </dl>
    <dl class="line">
      <dt>商&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;家：</dt>
      <dd>金贵银器<a href="javascript:void(0);" class="a">更多<i class="icon-angle-down"></i>
          <div class="more"><span class="arrow"></span>
            <ul>
              <li>所在地区：<span>&nbsp;</span></li>
              <li>联系电话：<span></span></li>
            </ul>
          </div>
        </a>
        <div><span member_id="1"></span>
        </div>
      </dd>
    </dl>
  </div>
</div>
<!--分页-->
<?php if (is_array($output['money_exchange_list']) and !empty($output['money_exchange_list'])) { ?>
  <!--<div class="pagination"><?php echo $output['show_page']; ?></div>-->
<?php } ?>
<script type="text/javascript">
$(function(){
    $('#show_shipping').on('hover',function(){
        var_send = '<?php echo date("Y-m-d H:i:s",$output['order_info']['extend_order_common']['shipping_time']); ?>&nbsp;&nbsp;<?php echo $lang['member_show_seller_has_send'];?><br/>';
    	$.getJSON('index.php?act=seller_center&op=get_express&e_code=<?php echo $output['order_info']['express_info']['e_code']?>&shipping_code=<?php echo $output['order_info']['shipping_code']?>&t=<?php echo random(7);?>',function(data){
    		if(data){
    			data = var_send+data;
    			$('#shipping_ul').html(data);
    			$('#show_shipping').unbind('hover');
    		}else{
    			$('#shipping_ul').html(var_send);
    			$('#show_shipping').unbind('hover');
    		}
    	});
    });
});
</script> 
